<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FLAC: FLAC/metadata.h: metadata level 2 interface</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FLAC
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">Free Lossless Audio Codec</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">FLAC/metadata.h: metadata level 2 interface<div class="ingroups"><a class="el" href="group__flac.html">FLAC C API</a> &raquo; <a class="el" href="group__flac__metadata.html">FLAC/metadata.h: metadata interfaces</a> &raquo; <a class="el" href="group__flac__metadata__level0.html">FLAC/metadata.h: metadata level 0 interface</a> &raquo; <a class="el" href="group__flac__metadata__level1.html">FLAC/metadata.h: metadata level 1 interface</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__flac__metadata__object"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__object.html">FLAC/metadata.h: metadata object methods</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaec6993c60b88f222a52af86f8f47bfdf"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a></td></tr>
<tr class="separator:gaec6993c60b88f222a52af86f8f47bfdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9f3e135a07cdef7e51597646aa7b89b2"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a></td></tr>
<tr class="separator:ga9f3e135a07cdef7e51597646aa7b89b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gafe2a924893b0800b020bea8160fd4531"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gafe2a924893b0800b020bea8160fd4531">FLAC__Metadata_ChainStatus</a> { <br />
&#160;&#160;<a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a293be942ec54576f2b3c73613af968e9">FLAC__METADATA_CHAIN_STATUS_OK</a> = 0
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a1be9400982f411173af46bf0c3acbdc7">FLAC__METADATA_CHAIN_STATUS_ILLEGAL_INPUT</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a43d2741a650576052fa3615d8cd64d86">FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a99748a4b12ed10f9368375cc8deeb143">FLAC__METADATA_CHAIN_STATUS_NOT_A_FLAC_FILE</a>
, <br />
&#160;&#160;<a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531ac469c6543ebb117e99064572c16672d4">FLAC__METADATA_CHAIN_STATUS_NOT_WRITABLE</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a8efd2c76dc06308eb6eba59e1bc6300b">FLAC__METADATA_CHAIN_STATUS_BAD_METADATA</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a0525de5fb5d8aeeb4e848e33a8d503c6">FLAC__METADATA_CHAIN_STATUS_READ_ERROR</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a5814bc26bcf92143198b8e7f028f43a2">FLAC__METADATA_CHAIN_STATUS_SEEK_ERROR</a>
, <br />
&#160;&#160;<a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a66460c735e4745788b40889329e8489f">FLAC__METADATA_CHAIN_STATUS_WRITE_ERROR</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531af4ecf22bc3e5adf78a9c765f856efb0d">FLAC__METADATA_CHAIN_STATUS_RENAME_ERROR</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a1cd3138ed493f6a0f5b95fb8481edd1e">FLAC__METADATA_CHAIN_STATUS_UNLINK_ERROR</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531ab12ec938f7556a163c609194ee0aede0">FLAC__METADATA_CHAIN_STATUS_MEMORY_ALLOCATION_ERROR</a>
, <br />
&#160;&#160;<a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a36b9bcf93da8e0f111738a65eab36e9d">FLAC__METADATA_CHAIN_STATUS_INTERNAL_ERROR</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531ab8a6aa5f115db3f07ad2ed4adbcbe060">FLAC__METADATA_CHAIN_STATUS_INVALID_CALLBACKS</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531a0d9e64ad6514c88b8ea9e9171c42ec9a">FLAC__METADATA_CHAIN_STATUS_READ_WRITE_MISMATCH</a>
, <a class="el" href="group__flac__metadata__level2.html#ggafe2a924893b0800b020bea8160fd4531af86670707345e2d02cc84aec059459d0">FLAC__METADATA_CHAIN_STATUS_WRONG_WRITE_CALL</a>
<br />
 }</td></tr>
<tr class="separator:gafe2a924893b0800b020bea8160fd4531"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga381a1b6efff8d4e9d793f1dda515bd73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga381a1b6efff8d4e9d793f1dda515bd73">FLAC__metadata_chain_new</a> (void)</td></tr>
<tr class="separator:ga381a1b6efff8d4e9d793f1dda515bd73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46b6c67f30db2955798dfb5556f63aa3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga46b6c67f30db2955798dfb5556f63aa3">FLAC__metadata_chain_delete</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain)</td></tr>
<tr class="separator:ga46b6c67f30db2955798dfb5556f63aa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e74773f8ca2bb2bc0b56a65ca0299f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__flac__metadata__level2.html#gafe2a924893b0800b020bea8160fd4531">FLAC__Metadata_ChainStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain)</td></tr>
<tr class="separator:ga8e74773f8ca2bb2bc0b56a65ca0299f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5a4f2056c30f78af5a79f6b64d5bfdcd"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, const char *filename)</td></tr>
<tr class="separator:ga5a4f2056c30f78af5a79f6b64d5bfdcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3995010aab28a483ad9905669e5c4954"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga3995010aab28a483ad9905669e5c4954">FLAC__metadata_chain_read_ogg</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, const char *filename)</td></tr>
<tr class="separator:ga3995010aab28a483ad9905669e5c4954"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga595f55b611ed588d4d55a9b2eb9d2add"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga595f55b611ed588d4d55a9b2eb9d2add">FLAC__metadata_chain_read_with_callbacks</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, <a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle, <a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a> callbacks)</td></tr>
<tr class="separator:ga595f55b611ed588d4d55a9b2eb9d2add"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaccc2f991722682d3c31d36f51985066c"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gaccc2f991722682d3c31d36f51985066c">FLAC__metadata_chain_read_ogg_with_callbacks</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, <a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle, <a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a> callbacks)</td></tr>
<tr class="separator:gaccc2f991722682d3c31d36f51985066c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46602f64d423cfe5d5f8a4155f8a97e2"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga46602f64d423cfe5d5f8a4155f8a97e2">FLAC__metadata_chain_check_if_tempfile_needed</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, FLAC__bool use_padding)</td></tr>
<tr class="separator:ga46602f64d423cfe5d5f8a4155f8a97e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46bf9cf7d426078101b9297ba80bb835"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, FLAC__bool use_padding, FLAC__bool preserve_file_stats)</td></tr>
<tr class="separator:ga46bf9cf7d426078101b9297ba80bb835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70532b3705294dc891d8db649a4d4843"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga70532b3705294dc891d8db649a4d4843">FLAC__metadata_chain_write_with_callbacks</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, FLAC__bool use_padding, <a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle, <a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a> callbacks)</td></tr>
<tr class="separator:ga70532b3705294dc891d8db649a4d4843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72facaa621e8d798036a4a7da3643e41"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga72facaa621e8d798036a4a7da3643e41">FLAC__metadata_chain_write_with_callbacks_and_tempfile</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain, FLAC__bool use_padding, <a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle, <a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a> callbacks, <a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> temp_handle, <a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a> temp_callbacks)</td></tr>
<tr class="separator:ga72facaa621e8d798036a4a7da3643e41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a43897914edb751cb87f7e281aff3dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga0a43897914edb751cb87f7e281aff3dc">FLAC__metadata_chain_merge_padding</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain)</td></tr>
<tr class="separator:ga0a43897914edb751cb87f7e281aff3dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga82b66fe71c727adb9cf80a1da9834ce5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga82b66fe71c727adb9cf80a1da9834ce5">FLAC__metadata_chain_sort_padding</a> (<a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain)</td></tr>
<tr class="separator:ga82b66fe71c727adb9cf80a1da9834ce5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1941ca04671813fc039ea7fd35ae6461"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga1941ca04671813fc039ea7fd35ae6461">FLAC__metadata_iterator_new</a> (void)</td></tr>
<tr class="separator:ga1941ca04671813fc039ea7fd35ae6461"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga374c246e1aeafd803d29a6e99b226241"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga374c246e1aeafd803d29a6e99b226241">FLAC__metadata_iterator_delete</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator)</td></tr>
<tr class="separator:ga374c246e1aeafd803d29a6e99b226241"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2e93196b17a1c73e949e661e33d7311a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator, <a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *chain)</td></tr>
<tr class="separator:ga2e93196b17a1c73e949e661e33d7311a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga60449d0c1d76a73978159e3aa5e79459"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga60449d0c1d76a73978159e3aa5e79459">FLAC__metadata_iterator_next</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator)</td></tr>
<tr class="separator:ga60449d0c1d76a73978159e3aa5e79459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa28df1c5aa56726f573f90e4bae2fe50"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gaa28df1c5aa56726f573f90e4bae2fe50">FLAC__metadata_iterator_prev</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator)</td></tr>
<tr class="separator:gaa28df1c5aa56726f573f90e4bae2fe50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83ecb59ffa16bfbb1e286e64f9270de1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__flac__format.html#gac71714ba8ddbbd66d26bb78a427fac01">FLAC__MetadataType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga83ecb59ffa16bfbb1e286e64f9270de1">FLAC__metadata_iterator_get_block_type</a> (const <a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator)</td></tr>
<tr class="separator:ga83ecb59ffa16bfbb1e286e64f9270de1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3e7fbc3b3d9c192a3ac425c7b263641"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gad3e7fbc3b3d9c192a3ac425c7b263641">FLAC__metadata_iterator_get_block</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator)</td></tr>
<tr class="separator:gad3e7fbc3b3d9c192a3ac425c7b263641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf61795b21300a2b0c9940c11974aab53"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gaf61795b21300a2b0c9940c11974aab53">FLAC__metadata_iterator_set_block</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator, <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *block)</td></tr>
<tr class="separator:gaf61795b21300a2b0c9940c11974aab53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadf860af967d2ee483be01fc0ed8767a9"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#gadf860af967d2ee483be01fc0ed8767a9">FLAC__metadata_iterator_delete_block</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator, FLAC__bool replace_with_padding)</td></tr>
<tr class="separator:gadf860af967d2ee483be01fc0ed8767a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ac45e2df8b6fd6f5db345c4293aa435"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga8ac45e2df8b6fd6f5db345c4293aa435">FLAC__metadata_iterator_insert_block_before</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator, <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *block)</td></tr>
<tr class="separator:ga8ac45e2df8b6fd6f5db345c4293aa435"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga55e53757f91696e2578196a2799fc632"><td class="memItemLeft" align="right" valign="top">FLAC__bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga55e53757f91696e2578196a2799fc632">FLAC__metadata_iterator_insert_block_after</a> (<a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *iterator, <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *block)</td></tr>
<tr class="separator:ga55e53757f91696e2578196a2799fc632"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ga6498d1976b0d9fa3f8f6295c02e622dd"><td class="memItemLeft" align="right" valign="top">const char *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level2.html#ga6498d1976b0d9fa3f8f6295c02e622dd">FLAC__Metadata_ChainStatusString</a> []</td></tr>
<tr class="separator:ga6498d1976b0d9fa3f8f6295c02e622dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>The level 2 interface provides read-write access to FLAC file metadata; all metadata is read into memory, operated on in memory, and then written to file, which is more efficient than level 1 when editing multiple blocks. </p>
<p>Currently Ogg FLAC is supported for read only, via <a class="el" href="group__flac__metadata__level2.html#ga3995010aab28a483ad9905669e5c4954">FLAC__metadata_chain_read_ogg()</a> but a subsequent <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> will fail.</p>
<p>The general usage of this interface is:</p>
<ul>
<li>Create a new chain using <a class="el" href="group__flac__metadata__level2.html#ga381a1b6efff8d4e9d793f1dda515bd73">FLAC__metadata_chain_new()</a>. A chain is a linked list of FLAC metadata blocks.</li>
<li>Read all metadata into the chain from a FLAC file using <a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read()</a> or <a class="el" href="group__flac__metadata__level2.html#ga3995010aab28a483ad9905669e5c4954">FLAC__metadata_chain_read_ogg()</a> and check the status.</li>
<li>Optionally, consolidate the padding using <a class="el" href="group__flac__metadata__level2.html#ga0a43897914edb751cb87f7e281aff3dc">FLAC__metadata_chain_merge_padding()</a> or <a class="el" href="group__flac__metadata__level2.html#ga82b66fe71c727adb9cf80a1da9834ce5">FLAC__metadata_chain_sort_padding()</a>.</li>
<li>Create a new iterator using <a class="el" href="group__flac__metadata__level2.html#ga1941ca04671813fc039ea7fd35ae6461">FLAC__metadata_iterator_new()</a></li>
<li>Initialize the iterator to point to the first element in the chain using <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a></li>
<li>Traverse the chain using FLAC__metadata_iterator_next and <a class="el" href="group__flac__metadata__level2.html#gaa28df1c5aa56726f573f90e4bae2fe50">FLAC__metadata_iterator_prev()</a>.</li>
<li>Get a block for reading or modification using <a class="el" href="group__flac__metadata__level2.html#gad3e7fbc3b3d9c192a3ac425c7b263641">FLAC__metadata_iterator_get_block()</a>. The pointer to the object inside the chain is returned, so the block is yours to modify. Changes will be reflected in the FLAC file when you write the chain. You can also add and delete blocks (see functions below).</li>
<li>When done, write out the chain using <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a>. Make sure to read the whole comment to the function below.</li>
<li>Delete the chain using <a class="el" href="group__flac__metadata__level2.html#ga46b6c67f30db2955798dfb5556f63aa3">FLAC__metadata_chain_delete()</a>.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>Even though the FLAC file is not open while the chain is being manipulated, you must not alter the file externally during this time. The chain assumes the FLAC file will not change between the time of <a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read()</a>/FLAC__metadata_chain_read_ogg() and <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a>.</dd>
<dd>
Do not modify the is_last, length, or type fields of returned <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> objects. These are managed automatically.</dd>
<dd>
The metadata objects returned by <a class="el" href="group__flac__metadata__level2.html#gad3e7fbc3b3d9c192a3ac425c7b263641">FLAC__metadata_iterator_get_block()</a> are owned by the chain; do not <a class="el" href="group__flac__metadata__object.html#ga6b3159744a1e5c4ce9d349fd0ebae800">FLAC__metadata_object_delete()</a> them. In the same way, blocks passed to <a class="el" href="group__flac__metadata__level2.html#gaf61795b21300a2b0c9940c11974aab53">FLAC__metadata_iterator_set_block()</a> become owned by the chain and they will be deleted when the chain is deleted. </dd></dl>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="gaec6993c60b88f222a52af86f8f47bfdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaec6993c60b88f222a52af86f8f47bfdf">&#9670;&nbsp;</a></span>FLAC__Metadata_Chain</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> <a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The opaque structure definition for the level 2 chain type. </p>

</div>
</div>
<a id="ga9f3e135a07cdef7e51597646aa7b89b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f3e135a07cdef7e51597646aa7b89b2">&#9670;&nbsp;</a></span>FLAC__Metadata_Iterator</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> <a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The opaque structure definition for the level 2 iterator type. </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gafe2a924893b0800b020bea8160fd4531"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe2a924893b0800b020bea8160fd4531">&#9670;&nbsp;</a></span>FLAC__Metadata_ChainStatus</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__flac__metadata__level2.html#gafe2a924893b0800b020bea8160fd4531">FLAC__Metadata_ChainStatus</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a293be942ec54576f2b3c73613af968e9"></a>FLAC__METADATA_CHAIN_STATUS_OK&#160;</td><td class="fielddoc"><p>The chain is in the normal OK state </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a1be9400982f411173af46bf0c3acbdc7"></a>FLAC__METADATA_CHAIN_STATUS_ILLEGAL_INPUT&#160;</td><td class="fielddoc"><p>The data passed into a function violated the function's usage criteria </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a43d2741a650576052fa3615d8cd64d86"></a>FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE&#160;</td><td class="fielddoc"><p>The chain could not open the target file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a99748a4b12ed10f9368375cc8deeb143"></a>FLAC__METADATA_CHAIN_STATUS_NOT_A_FLAC_FILE&#160;</td><td class="fielddoc"><p>The chain could not find the FLAC signature at the start of the file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531ac469c6543ebb117e99064572c16672d4"></a>FLAC__METADATA_CHAIN_STATUS_NOT_WRITABLE&#160;</td><td class="fielddoc"><p>The chain tried to write to a file that was not writable </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a8efd2c76dc06308eb6eba59e1bc6300b"></a>FLAC__METADATA_CHAIN_STATUS_BAD_METADATA&#160;</td><td class="fielddoc"><p>The chain encountered input that does not conform to the FLAC metadata specification </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a0525de5fb5d8aeeb4e848e33a8d503c6"></a>FLAC__METADATA_CHAIN_STATUS_READ_ERROR&#160;</td><td class="fielddoc"><p>The chain encountered an error while reading the FLAC file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a5814bc26bcf92143198b8e7f028f43a2"></a>FLAC__METADATA_CHAIN_STATUS_SEEK_ERROR&#160;</td><td class="fielddoc"><p>The chain encountered an error while seeking in the FLAC file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a66460c735e4745788b40889329e8489f"></a>FLAC__METADATA_CHAIN_STATUS_WRITE_ERROR&#160;</td><td class="fielddoc"><p>The chain encountered an error while writing the FLAC file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531af4ecf22bc3e5adf78a9c765f856efb0d"></a>FLAC__METADATA_CHAIN_STATUS_RENAME_ERROR&#160;</td><td class="fielddoc"><p>The chain encountered an error renaming the FLAC file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a1cd3138ed493f6a0f5b95fb8481edd1e"></a>FLAC__METADATA_CHAIN_STATUS_UNLINK_ERROR&#160;</td><td class="fielddoc"><p>The chain encountered an error removing the temporary file </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531ab12ec938f7556a163c609194ee0aede0"></a>FLAC__METADATA_CHAIN_STATUS_MEMORY_ALLOCATION_ERROR&#160;</td><td class="fielddoc"><p>Memory allocation failed </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a36b9bcf93da8e0f111738a65eab36e9d"></a>FLAC__METADATA_CHAIN_STATUS_INTERNAL_ERROR&#160;</td><td class="fielddoc"><p>The caller violated an assertion or an unexpected error occurred </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531ab8a6aa5f115db3f07ad2ed4adbcbe060"></a>FLAC__METADATA_CHAIN_STATUS_INVALID_CALLBACKS&#160;</td><td class="fielddoc"><p>One or more of the required callbacks was NULL </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531a0d9e64ad6514c88b8ea9e9171c42ec9a"></a>FLAC__METADATA_CHAIN_STATUS_READ_WRITE_MISMATCH&#160;</td><td class="fielddoc"><p><a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> was called on a chain read by <a class="el" href="group__flac__metadata__level2.html#ga595f55b611ed588d4d55a9b2eb9d2add">FLAC__metadata_chain_read_with_callbacks()</a>/FLAC__metadata_chain_read_ogg_with_callbacks(), or <a class="el" href="group__flac__metadata__level2.html#ga70532b3705294dc891d8db649a4d4843">FLAC__metadata_chain_write_with_callbacks()</a>/FLAC__metadata_chain_write_with_callbacks_and_tempfile() was called on a chain read by <a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read()</a>/FLAC__metadata_chain_read_ogg(). Matching read/write methods must always be used. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe2a924893b0800b020bea8160fd4531af86670707345e2d02cc84aec059459d0"></a>FLAC__METADATA_CHAIN_STATUS_WRONG_WRITE_CALL&#160;</td><td class="fielddoc"><p><a class="el" href="group__flac__metadata__level2.html#ga70532b3705294dc891d8db649a4d4843">FLAC__metadata_chain_write_with_callbacks()</a> was called when the chain write requires a tempfile; use <a class="el" href="group__flac__metadata__level2.html#ga72facaa621e8d798036a4a7da3643e41">FLAC__metadata_chain_write_with_callbacks_and_tempfile()</a> instead. Or, <a class="el" href="group__flac__metadata__level2.html#ga72facaa621e8d798036a4a7da3643e41">FLAC__metadata_chain_write_with_callbacks_and_tempfile()</a> was called when the chain write does not require a tempfile; use <a class="el" href="group__flac__metadata__level2.html#ga70532b3705294dc891d8db649a4d4843">FLAC__metadata_chain_write_with_callbacks()</a> instead. Always check <a class="el" href="group__flac__metadata__level2.html#ga46602f64d423cfe5d5f8a4155f8a97e2">FLAC__metadata_chain_check_if_tempfile_needed()</a> before writing via callbacks. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga381a1b6efff8d4e9d793f1dda515bd73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga381a1b6efff8d4e9d793f1dda515bd73">&#9670;&nbsp;</a></span>FLAC__metadata_chain_new()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a>* FLAC__metadata_chain_new </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a new chain instance.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__Metadata_Chain*</td><td><code>NULL</code> if there was an error allocating memory, else the new instance. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga46b6c67f30db2955798dfb5556f63aa3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga46b6c67f30db2955798dfb5556f63aa3">&#9670;&nbsp;</a></span>FLAC__metadata_chain_delete()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLAC__metadata_chain_delete </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Free a chain instance. Deletes the object pointed to by <em>chain</em>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="ga8e74773f8ca2bb2bc0b56a65ca0299f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8e74773f8ca2bb2bc0b56a65ca0299f4">&#9670;&nbsp;</a></span>FLAC__metadata_chain_status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__flac__metadata__level2.html#gafe2a924893b0800b020bea8160fd4531">FLAC__Metadata_ChainStatus</a> FLAC__metadata_chain_status </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the current status of the chain. Call this after a function returns <code>false</code> to get the reason for the error. Also resets the status to FLAC__METADATA_CHAIN_STATUS_OK.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__Metadata_ChainStatus</td><td>The current status of the chain. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga5a4f2056c30f78af5a79f6b64d5bfdcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5a4f2056c30f78af5a79f6b64d5bfdcd">&#9670;&nbsp;</a></span>FLAC__metadata_chain_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read all metadata from a FLAC file into the chain.</p>
<p>On Windows, filename must be a UTF-8 encoded filename, which libFLAC internally translates to an appropriate representation to use with _wfopen. On all other systems, filename is passed to fopen without any translation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">filename</td><td>The path to the FLAC file to read. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> <div class="fragment"><div class="line">filename != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if a valid list of metadata blocks was read from <em>filename</em>, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga3995010aab28a483ad9905669e5c4954"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3995010aab28a483ad9905669e5c4954">&#9670;&nbsp;</a></span>FLAC__metadata_chain_read_ogg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_read_ogg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read all metadata from an Ogg FLAC file into the chain.</p>
<p>On Windows, filename must be a UTF-8 encoded filename, which libFLAC internally translates to an appropriate representation to use with _wfopen. On all other systems, filename is passed to fopen without any translation.</p>
<dl class="section note"><dt>Note</dt><dd>Ogg FLAC metadata data writing is not supported yet and <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> will fail.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">filename</td><td>The path to the Ogg FLAC file to read. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> <div class="fragment"><div class="line">filename != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if a valid list of metadata blocks was read from <em>filename</em>, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga595f55b611ed588d4d55a9b2eb9d2add"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga595f55b611ed588d4d55a9b2eb9d2add">&#9670;&nbsp;</a></span>FLAC__metadata_chain_read_with_callbacks()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_read_with_callbacks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>&#160;</td>
          <td class="paramname"><em>callbacks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read all metadata from a FLAC stream into the chain via I/O callbacks.</p>
<p>The <em>handle</em> need only be open for reading, but must be seekable. The equivalent minimum stdio fopen() file mode is <code>"r"</code> (or <code>"rb"</code> for Windows).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">handle</td><td>The I/O handle of the FLAC stream to read. The handle will NOT be closed after the metadata is read; that is the duty of the caller. </td></tr>
    <tr><td class="paramname">callbacks</td><td>A set of callbacks to use for I/O. The mandatory callbacks are <em>read</em>, <em>seek</em>, and <em>tell</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if a valid list of metadata blocks was read from <em>handle</em>, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaccc2f991722682d3c31d36f51985066c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaccc2f991722682d3c31d36f51985066c">&#9670;&nbsp;</a></span>FLAC__metadata_chain_read_ogg_with_callbacks()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_read_ogg_with_callbacks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>&#160;</td>
          <td class="paramname"><em>callbacks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read all metadata from an Ogg FLAC stream into the chain via I/O callbacks.</p>
<p>The <em>handle</em> need only be open for reading, but must be seekable. The equivalent minimum stdio fopen() file mode is <code>"r"</code> (or <code>"rb"</code> for Windows).</p>
<dl class="section note"><dt>Note</dt><dd>Ogg FLAC metadata data writing is not supported yet and <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> will fail.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">handle</td><td>The I/O handle of the Ogg FLAC stream to read. The handle will NOT be closed after the metadata is read; that is the duty of the caller. </td></tr>
    <tr><td class="paramname">callbacks</td><td>A set of callbacks to use for I/O. The mandatory callbacks are <em>read</em>, <em>seek</em>, and <em>tell</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if a valid list of metadata blocks was read from <em>handle</em>, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga46602f64d423cfe5d5f8a4155f8a97e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga46602f64d423cfe5d5f8a4155f8a97e2">&#9670;&nbsp;</a></span>FLAC__metadata_chain_check_if_tempfile_needed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_check_if_tempfile_needed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FLAC__bool&#160;</td>
          <td class="paramname"><em>use_padding</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks if writing the given chain would require the use of a temporary file, or if it could be written in place.</p>
<p>Under certain conditions, padding can be utilized so that writing edited metadata back to the FLAC file does not require rewriting the entire file. If rewriting is required, then a temporary workfile is required. When writing metadata using callbacks, you must check this function to know whether to call <a class="el" href="group__flac__metadata__level2.html#ga70532b3705294dc891d8db649a4d4843">FLAC__metadata_chain_write_with_callbacks()</a> or <a class="el" href="group__flac__metadata__level2.html#ga72facaa621e8d798036a4a7da3643e41">FLAC__metadata_chain_write_with_callbacks_and_tempfile()</a>. When writing with <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a>, the temporary file is handled internally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">use_padding</td><td>Whether or not padding will be allowed to be used during the write. The value of <em>use_padding</em> given here must match the value later passed to <a class="el" href="group__flac__metadata__level2.html#ga70532b3705294dc891d8db649a4d4843">FLAC__metadata_chain_write_with_callbacks()</a> or FLAC__metadata_chain_write_with_callbacks_with_tempfile(). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if writing the current chain would require a tempfile, or <code>false</code> if metadata can be written in place. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga46bf9cf7d426078101b9297ba80bb835"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga46bf9cf7d426078101b9297ba80bb835">&#9670;&nbsp;</a></span>FLAC__metadata_chain_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FLAC__bool&#160;</td>
          <td class="paramname"><em>use_padding</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FLAC__bool&#160;</td>
          <td class="paramname"><em>preserve_file_stats</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write all metadata out to the FLAC file. This function tries to be as efficient as possible; how the metadata is actually written is shown by the following:</p>
<p>If the current chain is the same size as the existing metadata, the new data is written in place.</p>
<p>If the current chain is longer than the existing metadata, and <em>use_padding</em> is <code>true</code>, and the last block is a PADDING block of sufficient length, the function will truncate the final padding block so that the overall size of the metadata is the same as the existing metadata, and then just rewrite the metadata. Otherwise, if not all of the above conditions are met, the entire FLAC file must be rewritten. If you want to use padding this way it is a good idea to call <a class="el" href="group__flac__metadata__level2.html#ga82b66fe71c727adb9cf80a1da9834ce5">FLAC__metadata_chain_sort_padding()</a> first so that you have the maximum amount of padding to work with, unless you need to preserve ordering of the PADDING blocks for some reason.</p>
<p>If the current chain is shorter than the existing metadata, and <em>use_padding</em> is <code>true</code>, and the final block is a PADDING block, the padding is extended to make the overall size the same as the existing data. If <em>use_padding</em> is <code>true</code> and the last block is not a PADDING block, a new PADDING block is added to the end of the new data to make it the same size as the existing data (if possible, see the note to <a class="el" href="group__flac__metadata__level1.html#gae1dd863561606658f88c492682de7b80">FLAC__metadata_simple_iterator_set_block()</a> about the four byte limit) and the new data is written in place. If none of the above apply or <em>use_padding</em> is <code>false</code>, the entire FLAC file is rewritten.</p>
<p>If <em>preserve_file_stats</em> is <code>true</code>, the owner and modification time will be preserved even if the FLAC file is written.</p>
<p>For this write function to be used, the chain must have been read with <a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read()</a>/FLAC__metadata_chain_read_ogg(), not <a class="el" href="group__flac__metadata__level2.html#ga595f55b611ed588d4d55a9b2eb9d2add">FLAC__metadata_chain_read_with_callbacks()</a>/FLAC__metadata_chain_read_ogg_with_callbacks().</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">use_padding</td><td>See above. </td></tr>
    <tr><td class="paramname">preserve_file_stats</td><td>See above. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if the write succeeded, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga70532b3705294dc891d8db649a4d4843"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga70532b3705294dc891d8db649a4d4843">&#9670;&nbsp;</a></span>FLAC__metadata_chain_write_with_callbacks()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_write_with_callbacks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FLAC__bool&#160;</td>
          <td class="paramname"><em>use_padding</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>&#160;</td>
          <td class="paramname"><em>callbacks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write all metadata out to a FLAC stream via callbacks.</p>
<p>(See <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> for the details on how padding is used to write metadata in place if possible.)</p>
<p>The <em>handle</em> must be open for updating and be seekable. The equivalent minimum stdio fopen() file mode is <code>"r+"</code> (or <code>"r+b"</code> for Windows).</p>
<p>For this write function to be used, the chain must have been read with <a class="el" href="group__flac__metadata__level2.html#ga595f55b611ed588d4d55a9b2eb9d2add">FLAC__metadata_chain_read_with_callbacks()</a>/FLAC__metadata_chain_read_ogg_with_callbacks(), not <a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read()</a>/FLAC__metadata_chain_read_ogg(). Also, <a class="el" href="group__flac__metadata__level2.html#ga46602f64d423cfe5d5f8a4155f8a97e2">FLAC__metadata_chain_check_if_tempfile_needed()</a> must have returned <code>false</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">use_padding</td><td>See <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> </td></tr>
    <tr><td class="paramname">handle</td><td>The I/O handle of the FLAC stream to write. The handle will NOT be closed after the metadata is written; that is the duty of the caller. </td></tr>
    <tr><td class="paramname">callbacks</td><td>A set of callbacks to use for I/O. The mandatory callbacks are <em>write</em> and <em>seek</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if the write succeeded, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga72facaa621e8d798036a4a7da3643e41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga72facaa621e8d798036a4a7da3643e41">&#9670;&nbsp;</a></span>FLAC__metadata_chain_write_with_callbacks_and_tempfile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_chain_write_with_callbacks_and_tempfile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FLAC__bool&#160;</td>
          <td class="paramname"><em>use_padding</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>&#160;</td>
          <td class="paramname"><em>callbacks</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a>&#160;</td>
          <td class="paramname"><em>temp_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>&#160;</td>
          <td class="paramname"><em>temp_callbacks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write all metadata out to a FLAC stream via callbacks.</p>
<p>(See <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> for the details on how padding is used to write metadata in place if possible.)</p>
<p>This version of the write-with-callbacks function must be used when <a class="el" href="group__flac__metadata__level2.html#ga46602f64d423cfe5d5f8a4155f8a97e2">FLAC__metadata_chain_check_if_tempfile_needed()</a> returns true. In this function, you must supply an I/O handle corresponding to the FLAC file to edit, and a temporary handle to which the new FLAC file will be written. It is the caller's job to move this temporary FLAC file on top of the original FLAC file to complete the metadata edit.</p>
<p>The <em>handle</em> must be open for reading and be seekable. The equivalent minimum stdio fopen() file mode is <code>"r"</code> (or <code>"rb"</code> for Windows).</p>
<p>The <em>temp_handle</em> must be open for writing. The equivalent minimum stdio fopen() file mode is <code>"w"</code> (or <code>"wb"</code> for Windows). It should be an empty stream, or at least positioned at the start-of-file (in which case it is the caller's duty to truncate it on return).</p>
<p>For this write function to be used, the chain must have been read with <a class="el" href="group__flac__metadata__level2.html#ga595f55b611ed588d4d55a9b2eb9d2add">FLAC__metadata_chain_read_with_callbacks()</a>/FLAC__metadata_chain_read_ogg_with_callbacks(), not <a class="el" href="group__flac__metadata__level2.html#ga5a4f2056c30f78af5a79f6b64d5bfdcd">FLAC__metadata_chain_read()</a>/FLAC__metadata_chain_read_ogg(). Also, <a class="el" href="group__flac__metadata__level2.html#ga46602f64d423cfe5d5f8a4155f8a97e2">FLAC__metadata_chain_check_if_tempfile_needed()</a> must have returned <code>true</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
    <tr><td class="paramname">use_padding</td><td>See <a class="el" href="group__flac__metadata__level2.html#ga46bf9cf7d426078101b9297ba80bb835">FLAC__metadata_chain_write()</a> </td></tr>
    <tr><td class="paramname">handle</td><td>The I/O handle of the original FLAC stream to read. The handle will NOT be closed after the metadata is written; that is the duty of the caller. </td></tr>
    <tr><td class="paramname">callbacks</td><td>A set of callbacks to use for I/O on <em>handle</em>. The mandatory callbacks are <em>read</em>, <em>seek</em>, and <em>eof</em>. </td></tr>
    <tr><td class="paramname">temp_handle</td><td>The I/O handle of the FLAC stream to write. The handle will NOT be closed after the metadata is written; that is the duty of the caller. </td></tr>
    <tr><td class="paramname">temp_callbacks</td><td>A set of callbacks to use for I/O on temp_handle. The only mandatory callback is <em>write</em>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>true</code> if the write succeeded, else <code>false</code>. On failure, check the status with <a class="el" href="group__flac__metadata__level2.html#ga8e74773f8ca2bb2bc0b56a65ca0299f4">FLAC__metadata_chain_status()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0a43897914edb751cb87f7e281aff3dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0a43897914edb751cb87f7e281aff3dc">&#9670;&nbsp;</a></span>FLAC__metadata_chain_merge_padding()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLAC__metadata_chain_merge_padding </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Merge adjacent PADDING blocks into a single block.</p>
<dl class="section note"><dt>Note</dt><dd>This function does not write to the FLAC file, it only modifies the chain.</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>Any iterator on the current chain will become invalid after this call. You should delete the iterator and get a new one.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="ga82b66fe71c727adb9cf80a1da9834ce5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga82b66fe71c727adb9cf80a1da9834ce5">&#9670;&nbsp;</a></span>FLAC__metadata_chain_sort_padding()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLAC__metadata_chain_sort_padding </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will move all PADDING blocks to the end on the metadata, then merge them into a single block.</p>
<dl class="section note"><dt>Note</dt><dd>This function does not write to the FLAC file, it only modifies the chain.</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>Any iterator on the current chain will become invalid after this call. You should delete the iterator and get a new one.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">chain</td><td>A pointer to an existing chain. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="ga1941ca04671813fc039ea7fd35ae6461"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1941ca04671813fc039ea7fd35ae6461">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_new()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a>* FLAC__metadata_iterator_new </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a new iterator instance.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__Metadata_Iterator*</td><td><code>NULL</code> if there was an error allocating memory, else the new instance. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga374c246e1aeafd803d29a6e99b226241"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga374c246e1aeafd803d29a6e99b226241">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_delete()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLAC__metadata_iterator_delete </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Free an iterator instance. Deletes the object pointed to by <em>iterator</em>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="ga2e93196b17a1c73e949e661e33d7311a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2e93196b17a1c73e949e661e33d7311a">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLAC__metadata_iterator_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#gaec6993c60b88f222a52af86f8f47bfdf">FLAC__Metadata_Chain</a> *&#160;</td>
          <td class="paramname"><em>chain</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize the iterator to point to the first metadata block in the given chain.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing iterator. </td></tr>
    <tr><td class="paramname">chain</td><td>A pointer to an existing and initialized (read) chain. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <div class="fragment"><div class="line">chain != NULL </div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="ga60449d0c1d76a73978159e3aa5e79459"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga60449d0c1d76a73978159e3aa5e79459">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_next()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_iterator_next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Moves the iterator forward one metadata block, returning <code>false</code> if already at the end.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>false</code> if already at the last metadata block of the chain, else <code>true</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa28df1c5aa56726f573f90e4bae2fe50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa28df1c5aa56726f573f90e4bae2fe50">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_prev()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_iterator_prev </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Moves the iterator backward one metadata block, returning <code>false</code> if already at the beginning.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>false</code> if already at the first metadata block of the chain, else <code>true</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga83ecb59ffa16bfbb1e286e64f9270de1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83ecb59ffa16bfbb1e286e64f9270de1">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_get_block_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__flac__format.html#gac71714ba8ddbbd66d26bb78a427fac01">FLAC__MetadataType</a> FLAC__metadata_iterator_get_block_type </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the type of the metadata block at the current position.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__MetadataType</td><td>The type of the metadata block at the current iterator position. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad3e7fbc3b3d9c192a3ac425c7b263641"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad3e7fbc3b3d9c192a3ac425c7b263641">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_get_block()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a>* FLAC__metadata_iterator_get_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the metadata block at the current position. You can modify the block in place but must write the chain before the changes are reflected to the FLAC file. You do not need to call <a class="el" href="group__flac__metadata__level2.html#gaf61795b21300a2b0c9940c11974aab53">FLAC__metadata_iterator_set_block()</a> to reflect the changes; the pointer returned by <a class="el" href="group__flac__metadata__level2.html#gad3e7fbc3b3d9c192a3ac425c7b263641">FLAC__metadata_iterator_get_block()</a> points directly into the chain.</p>
<dl class="section warning"><dt>Warning</dt><dd>Do not call <a class="el" href="group__flac__metadata__object.html#ga6b3159744a1e5c4ce9d349fd0ebae800">FLAC__metadata_object_delete()</a> on the returned object; to delete a block use <a class="el" href="group__flac__metadata__level2.html#gadf860af967d2ee483be01fc0ed8767a9">FLAC__metadata_iterator_delete_block()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__StreamMetadata*</td><td>The current metadata block. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf61795b21300a2b0c9940c11974aab53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf61795b21300a2b0c9940c11974aab53">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_set_block()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_iterator_set_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&#160;</td>
          <td class="paramname"><em>block</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the metadata block at the current position, replacing the existing block. The new block passed in becomes owned by the chain and it will be deleted when the chain is deleted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
    <tr><td class="paramname">block</td><td>A pointer to a metadata block. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> <div class="fragment"><div class="line">block != NULL </div>
</div><!-- fragment --> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>false</code> if the conditions in the above description are not met, or a memory allocation error occurs, otherwise <code>true</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadf860af967d2ee483be01fc0ed8767a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadf860af967d2ee483be01fc0ed8767a9">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_delete_block()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_iterator_delete_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FLAC__bool&#160;</td>
          <td class="paramname"><em>replace_with_padding</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the current block from the chain. If <em>replace_with_padding</em> is <code>true</code>, the block will instead be replaced with a padding block of equal size. You can not delete the STREAMINFO block. The iterator will be left pointing to the block before the one just "deleted", even if <em>replace_with_padding</em> is <code>true</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
    <tr><td class="paramname">replace_with_padding</td><td>See above. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>false</code> if the conditions in the above description are not met, otherwise <code>true</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8ac45e2df8b6fd6f5db345c4293aa435"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8ac45e2df8b6fd6f5db345c4293aa435">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_insert_block_before()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_iterator_insert_block_before </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&#160;</td>
          <td class="paramname"><em>block</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Insert a new block before the current block. You cannot insert a block before the first STREAMINFO block. You cannot insert a STREAMINFO block as there can be only one, the one that already exists at the head when you read in a chain. The chain takes ownership of the new block and it will be deleted when the chain is deleted. The iterator will be left pointing to the new block.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
    <tr><td class="paramname">block</td><td>A pointer to a metadata block to insert. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>false</code> if the conditions in the above description are not met, or a memory allocation error occurs, otherwise <code>true</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga55e53757f91696e2578196a2799fc632"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga55e53757f91696e2578196a2799fc632">&#9670;&nbsp;</a></span>FLAC__metadata_iterator_insert_block_after()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FLAC__bool FLAC__metadata_iterator_insert_block_after </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__flac__metadata__level2.html#ga9f3e135a07cdef7e51597646aa7b89b2">FLAC__Metadata_Iterator</a> *&#160;</td>
          <td class="paramname"><em>iterator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&#160;</td>
          <td class="paramname"><em>block</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Insert a new block after the current block. You cannot insert a STREAMINFO block as there can be only one, the one that already exists at the head when you read in a chain. The chain takes ownership of the new block and it will be deleted when the chain is deleted. The iterator will be left pointing to the new block.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iterator</td><td>A pointer to an existing initialized iterator. </td></tr>
    <tr><td class="paramname">block</td><td>A pointer to a metadata block to insert. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Assertions:</dt><dd><div class="fragment"><div class="line">iterator != NULL </div>
</div><!-- fragment --> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level2.html#ga2e93196b17a1c73e949e661e33d7311a">FLAC__metadata_iterator_init()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLAC__bool</td><td><code>false</code> if the conditions in the above description are not met, or a memory allocation error occurs, otherwise <code>true</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="ga6498d1976b0d9fa3f8f6295c02e622dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6498d1976b0d9fa3f8f6295c02e622dd">&#9670;&nbsp;</a></span>FLAC__Metadata_ChainStatusString</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* const FLAC__Metadata_ChainStatusString[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Maps a FLAC__Metadata_ChainStatus to a C string.</p>
<p>Using a FLAC__Metadata_ChainStatus as the index to this array will give the string equivalent. The contents should not be modified. </p>

</div>
</div>
</div><!-- contents -->

<hr size="1"/>
Copyright (c) 2000-2009  Josh Coalson
Copyright (c) 2011-2023  Xiph.Org Foundation
<!-- Copyright (c) 2000-2009  Josh Coalson -->
<!-- Copyright (c) 2011-2023  Xiph.Org Foundation -->
<!-- Permission is granted to copy, distribute and/or modify this document -->
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
<!-- or any later version published by the Free Software Foundation; -->
<!-- with no invariant sections. -->
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
</body>
</html>
